<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html">
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link href="resources/css/default.css" rel="stylesheet" type="text/css" />
        <link href="resources/css/cssLayout.css" rel="stylesheet" type="text/css" />
    </h:head>
    <h:body rendered="#{loginManagedBean.logado}">
            <h1 align="right">
                <h:outputLabel value=" #{msgs.hola} #{usuario.nombre}"/>
                <br/><br/>
                 <h:form>
                <h1><h:link value="#{msgs.perfil}" outcome="profile"/></h1>
                <h:commandLink action="#{loginManagedBean.logout}" value="#{msgs.salir}"/>
                <br/><br/>
                
                <h:panelGrid columns="1" rendered="#{loginManagedBean.usuario.rolId.rolId==3 || loginManagedBean.usuario.rolId.rolId==5}" >
                    <br/><br/>
                    <h2><h:link value="#{msgs.usuarios}" outcome="usuarios"/></h2>
                </h:panelGrid>
            </h:form>

            </h1>
    </h:body>
</html>
